<div id="opt-bar" class="opt-bar">
	<?php if(fd('loginer.id') != $r->poster_id):?>
	<a class="btn-ajax" 
		href="<?php echo site_url('c=topic&m=dig&type=good&id='.$r->id);?>"
		afterdo="dig_after_do"
	><span class="fb c1 fs1">:=)</span> &nbsp;赞<span class="count"><?php echo $r->dig_good_count;?></span></a>
	<div class="b4"></div>
	<a class="btn-ajax" 
		href="<?php echo site_url('c=topic&m=dig&type=bad&id='.$r->id);?>"
		afterdo="dig_after_do"
	><span class="fb c3 fs1">:=(</span> &nbsp;糗<span class="count"><?php echo $r->dig_bad_count;?></span></a>
	<div class="b2"></div>
	<?php endif;?>
	

	<?php if($is_login && $loginer->id == $r->poster_id):?>
	<a href="<?php echo site_url('c=topic&m=addsub&id='.$r->id);?>">添加子主题</a>
	<div class="b4"></div>
	<a class="btn-ajax-confirm" msg="sure 不 ？" href="<?php echo site_url('c=topic&m=del&id='.$r->id);?>">删除此主题</a>
	<?php endif;?>
	<div class="b4"></div>
	<a href="#frm-reply">评论此主题</a>
	<div class="b2"></div>
	
	<?php if($r->favo_status == 'normal'):?>
		<a class="btn-ajax" 
    		href="<?php echo site_url('c=topic&m=favo&id='.$r->id);?>"
    		afterdo="favo_after_do"
    	>
			<span class="favo-title">收藏</span> <span class="favo-count c3"><?php echo $r->count_favo;?></span>
		</a>
	<?php elseif($r->favo_status == 'unfavo'):?>
		<a class="c3" href="javascript:void(0);"> 收藏<?php echo $r->count_favo;?> </a>
	<?php elseif($r->favo_status == 'favoed'):?>
		<a class="btn-ajax" 
    		href="<?php echo site_url('c=topic&m=favo&id='.$r->id);?>"
    		afterdo="favo_after_do"
    	>
			<span class="favo-title">取消收藏</span> 
			<span class="favo-count c3"><?php echo $r->count_favo;?></span>
		</a>
	<?php endif;?>
</div>